/*
 * BooleanConst.h
 *
 *  Created on: 17.04.2012
 *      Author: Eugene Kornykhin
 */

#ifndef BOOLEANCONST_H_
#define BOOLEANCONST_H_

#include "../PElement.h"

class BooleanConst: public PElement {
public:
	BooleanConst(bool value);
	virtual ~BooleanConst();

	bool isTrue() const;


	virtual void execute(Interpreter &);

	virtual PolizPosition next_position_after(PolizPosition) const;
	virtual bool isHalt() const;
	virtual BooleanConst *clone(const Poliz &) const;
	string toString() const;

private:
	bool value;
};

#endif /* BOOLEANCONST_H_ */
